﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Data.SqlClient;
using System.Data.Linq;
using Model;

namespace DAL
{
    public class UserDAL
    {
        VikiDataContext ctx = new VikiDataContext("Data Source=PC-201403031917;Initial Catalog=Viki;Integrated Security=True");
         public int AddUser(User user)
        {
            ctx.User.InsertOnSubmit(user);
            ctx.SubmitChanges();
            return 1;
        }
    }
}
